package service;

import bean.Employee;
import dao.EmployeeMapper;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author chenpeng
 * @date 2018/5/21 22:20
 */
@Service
public class EmployeeService {
    @Autowired
    private EmployeeMapper mapper;

    @Autowired
    private SqlSession sqlSession;

    public List<Employee> getEmps(){
        return mapper.getEmps();
    }

}
